/////precompiled////////
#include "precompiled.h"
////////////////////////

#include "prs_FrmPanelStyle.h"
using namespace prs;

// TNodeFrmPanelStyle /////////////////////////////////////////////////////////

// TRuleFrmPanelStyle /////////////////////////////////////////////////////////

//
TRuleFrmPanelStyle::TRuleFrmPanelStyle(
  snt::text::TContext &Context,
  svl::TVariant &VParentNode,
  TRuleFrmStyleState &RStyleState
) 
:vParentNode(VParentNode)
,rStyleState(RStyleState)
{
  snt::TReturn         Return;
  snt::TFVoid          F;
  snt::text::TSequence T(Context);
  snt::text::TKeyword K(Context);
  prs::TFuncNewNodeIntoAttrOldChildren FNewNode;

  this->Name(GetClassName()).Local(vParentNode)
  | K.New("panel") 
    & FNewNode.New(VParentNode,TNodeFrmPanelStyle()) 
    & F.New(this,&TRuleFrmPanelStyle::FState)
    & rStyleState.New() 
    & Return.New()
  ;

  //svl::TMessageModal(GetClassName() << "\r\n" << GetGraphInfo(""));
}
